Skip to content

Add "Settings" page link to plugin actions#92

Merged
peterwilsoncc merged 3 commits intodevelopfrom
feature/settings-page-link
Jul 21, 2025
Merged

Add "Settings" page link to plugin actions#92
peterwilsoncc merged 3 commits intodevelopfrom
feature/settings-page-link

Conversation

@sanketio
Copy link
Copy Markdown
Contributor

@sanketio sanketio commented Jul 18, 2025

Description of the Change

Closes #72

How to test the Change

  1. Visit /wp-admin/plugins.php page of your site.
  2. If Block Catalog plugin is not active, then activate it.
  3. Once it is activated, you should see Settings link right below the plugin name, before Deactivate link.
  4. On clicking on Settings link, you should be redirected to /wp-admin/tools.php?page=block-catalog-tools page.

Changelog Entry

Added - "Settings" page link right on the plugins page to review the settings of the plugin from there directly.

Credits

Props @sanketio

Checklist:

@sanketio sanketio requested review from a team and dsawardekar as code owners July 18, 2025 12:33
@sanketio sanketio requested review from peterwilsoncc and removed request for a team July 18, 2025 12:33
Copy link
Copy Markdown
Contributor

@peterwilsoncc peterwilsoncc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, thank you.

I've dropped a nitpick and question inline.

Comment thread includes/classes/ToolsPage.php Outdated
Comment thread includes/classes/ToolsPage.php Outdated
'settings' => sprintf(
'<a href="%s"> %s </a>',
esc_url( admin_url( 'tools.php?page=block-catalog-tools' ) ),
esc_html__( 'Settings', 'block-catalog' )
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be wrong here, so feel free to push back, but I'm wondering if this would be best as Index Blocks or similar as it's not really a settings page.

Let me know your thoughts.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@peterwilsoncc I updated it to Index Posts same as the button text on the index page (/wp-admin/tools.php?page=block-catalog-tools):
CleanShot 2025-07-21 at 16 00 07@2x

Let me know if that makes sense!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Index Posts is great, thank you!

sanketio and others added 2 commits July 21, 2025 15:55
Co-authored-by: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@peterwilsoncc peterwilsoncc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good and tests well, thank you!

@peterwilsoncc peterwilsoncc merged commit 28f9152 into develop Jul 21, 2025
8 checks passed
@peterwilsoncc peterwilsoncc deleted the feature/settings-page-link branch July 21, 2025 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add plugin page link to Settings page

2 participants